import request from "@/apis/request";

export const findTalents = async (searchForm, currentPage, pageSize) => {
    return await request.get('/api/talent/find', {
        params: {
            employeeId: searchForm.employeeId,
            employeeName: searchForm.employeeName,
            education: searchForm.education,
            currentPage: currentPage,
            pageSize: pageSize
        }
    })
}
export const addTalent = async (form) => {
    return await request.post('/api/talent/insert', form)
}
export const updateTalent = async (form) => {
    return await request.put('/api/talent/update', form)
}
export const deleteTalent = async (id) => {
    return await request.delete('/api/talent/delete' , {data:id})
}

export const findTalentById = async (id) => {
    return await request.get('/api/talent/findCode', {params: {employeeId: id}})
}